<?php
/*************************************************************
*
*	@file:	include/class/message.class.php
*
*	@class:	purchase
*
*	@brief:	class that provide a whole support 
*				for message.
*
*	@author: Skype
*************************************************************/

class message
{
	/**
	*	@brief:	the error message
	*
	*	@access: public
	*
	*	@type: string
	*/
	public $error = '';
	
	/**
	*	@brief:	reciever id
	*
	*	@access: public
	*
	*	@type: string
	*/
	public $reciever = '';
	
		/**
	*	@brief:	set the error message
	*
	*	@access: protected
	*
	*	@params: $error, string contain the message of error.
	*
	*	@return: none
	*/
	protected function setErrorMessage($error)
	{
		$this->error = $error;
	}

	/**
	 * 	@class constructor
	 */
	function __construct($reciever)
	{
		if(!$reciever) return FALSE;
		$this->reciever = $reciever;
	}
	
	/**
	*	@brief:	add an message
	*
	*	@access: public
	*
	*	@params: $messageInfo
	*
	*	@return: message ID
	*/
	public function addMessage($messageInfo)
	{
	}
	
	/**
	*	@brief:	remove an message
	*
	*	@access: public
	*
	*	@params: $messageInfo
	*
	*	@return: boolean
	*/
	public function delMessage($messageID)
	{
	}
	
	/**
	*	@brief:	update the status of an message
	*
	*	@access: public
	*
	*	@params: $messageID, $status
	*
	*	@return: boolean
	*/
	public function updateMessageStatus($messageID, $status)
	{
	}
}